﻿#region Usings

using System;
using KanbanBoard.Server.Command.Infrastructure.DataAccess;

#endregion

namespace KanbanBoard.Server.Command.Infrastructure {
    public static class CommandBus {
        public static void Queue(Action<DataContext> command) {
            using (var context = new DataContext()) {
                command(context);
            }
        }
    }
}